<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>09_getter方法</title>
    </head>
    <body>
        <script>
            var person = {
                name:'马志强',
                get eat(){
                    console.log('沂蒙山炒鸡');
                }
            }

            person.eat;
        </script>
    </body>
</html>